package com.guigu.thirdpartyservices.propertes;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
@NoArgsConstructor
@AllArgsConstructor
@ConfigurationProperties(prefix = "a-li-yun")
public class ALiYunProperty {
    private String accessKeyId;
    private String accessKeySecret;
    private Oss oss;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class Oss {
        private String bucketName;
        private String endpoint;
        private String urlPrefix;
    }
}
